package com.qh.basic.query;

import lombok.Data;

@Data
public class BaseQuery {
    /* 当前页 */
    private Integer currentPage = 1;
    /* 每页显示的条数 */
    private Integer pageSize = 5;
    /* 计算当前页起始的下标 */
    public Integer getBegin(){
        return (this.currentPage - 1)*this.pageSize;
    }

    /* 高级查询 */
    private String keyword;
}
